package cn.mijack.face;

import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Created by MiJack on 2016/6/13.
 */
public class FacePlusPlusActivity extends AppCompatActivity {
    ImageView imageView1;
    ImageView imageView2;
    TextView textView1;
    TextView textView2;
    Bitmap bitmap;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_face_plus_plus);
        imageView1 = (ImageView) findViewById(R.id.imageView1);
        imageView2 = (ImageView) findViewById(R.id.imageView2);
        textView1 = (TextView) findViewById(R.id.textView1);
        textView2 = (TextView) findViewById(R.id.textView2);
        Intent intent = getIntent();
        if (intent == null) {
            finish();
            return;
        } else {
            bitmap = intent.getParcelableExtra("data");
            if (bitmap == null) {
                finish();
                return;
            }
        }
        imageView1.setImageBitmap(bitmap);
    }

}
